home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / Finder.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  3.8 KB  |  142 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Finder.p
  3.  
  4.      Contains:    Finder flags and container types.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT Finder;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __FINDER__}
  30. {$SETC __FINDER__ := 1}
  31.  
  32. {$I+}
  33. {$SETC FinderIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46. CONST
  47. { Make only the following consts avaiable to resource files that include this file }
  48.     kCustomIconResource            = -16455;                        { Custom icon family resource ID }
  49.     kContainerFolderAliasType    = 'fdrp';                        { type for folder aliases }
  50.     kContainerTrashAliasType    = 'trsh';                        { type for trash folder aliases }
  51.     kContainerHardDiskAliasType    = 'hdsk';                        { type for hard disk aliases }
  52.     kContainerFloppyAliasType    = 'flpy';                        { type for floppy aliases }
  53.     kContainerServerAliasType    = 'srvr';                        { type for server aliases }
  54.     kApplicationAliasType        = 'adrp';                        { type for application aliases }
  55.     kContainerAliasType            = 'drop';                        { type for all other containers }
  56. { types for Special folder aliases }
  57.     kSystemFolderAliasType        = 'fasy';
  58.     kAppleMenuFolderAliasType    = 'faam';
  59.     kStartupFolderAliasType        = 'fast';
  60.     kPrintMonitorDocsFolderAliasType = 'fapn';
  61.     kPreferencesFolderAliasType    = 'fapf';
  62.     kControlPanelFolderAliasType = 'fact';
  63.     kExtensionFolderAliasType    = 'faex';
  64. { types for AppleShare folder aliases }
  65.     kExportedFolderAliasType    = 'faet';
  66.     kDropFolderAliasType        = 'fadr';
  67.     kSharedFolderAliasType        = 'fash';
  68.     kMountedFolderAliasType        = 'famn';
  69.  
  70. { Finder Flags }
  71.     kIsOnDesk                    = $1;
  72.     kColor                        = $E;
  73.     kIsShared                    = $40;
  74.     kHasBeenInited                = $100;
  75.     kHasCustomIcon                = $400;
  76.     kIsStationery                = $800;
  77.     kIsStationary                = $800;
  78.     kNameLocked                    = $1000;
  79.     kHasBundle                    = $2000;
  80.     kIsInvisible                = $4000;
  81.     kIsAlias                    = $8000;
  82.  
  83. {    
  84.     The following declerations used to be in Files.i, 
  85.     but are Finder specific and were moved here.
  86. }
  87. {$IFC NOT OLDROUTINELOCATIONS }
  88. { Finder Constants }
  89.     fOnDesk                        = 1;
  90.     fHasBundle                    = 8192;
  91.     fTrash                        = -3;
  92.     fDesktop                    = -2;
  93.     fDisk                        = 0;
  94.  
  95.  
  96. TYPE
  97.     FInfo = RECORD
  98.         fdType:                    OSType;                                    {the type of the file}
  99.         fdCreator:                OSType;                                    {file's creator}
  100.         fdFlags:                INTEGER;                                {flags ex. hasbundle,invisible,locked, etc.}
  101.         fdLocation:                Point;                                    {file's location in folder}
  102.         fdFldr:                    INTEGER;                                {folder containing file}
  103.     END;
  104.  
  105.     FXInfo = RECORD
  106.         fdIconID:                INTEGER;                                {Icon ID}
  107.         fdUnused:                ARRAY [0..2] OF INTEGER;                {unused but reserved 6 bytes}
  108.         fdScript:                SInt8;                                    {Script flag and number}
  109.         fdXFlags:                SInt8;                                    {More flag bits}
  110.         fdComment:                INTEGER;                                {Comment ID}
  111.         fdPutAway:                LONGINT;                                {Home Dir ID}
  112.     END;
  113.  
  114.     DInfo = RECORD
  115.         frRect:                    Rect;                                    {folder rect}
  116.         frFlags:                INTEGER;                                {Flags}
  117.         frLocation:                Point;                                    {folder location}
  118.         frView:                    INTEGER;                                {folder view}
  119.     END;
  120.  
  121.     DXInfo = RECORD
  122.         frScroll:                Point;                                    {scroll position}
  123.         frOpenChain:            LONGINT;                                {DirID chain of open folders}
  124.         frScript:                SInt8;                                    {Script flag and number}
  125.         frXFlags:                SInt8;                                    {More flag bits}
  126.         frComment:                INTEGER;                                {comment}
  127.         frPutAway:                LONGINT;                                {DirID}
  128.     END;
  129.  
  130. {$ENDC}
  131.  
  132. {$ALIGN RESET}
  133. {$POP}
  134.  
  135. {$SETC UsingIncludes := FinderIncludes}
  136.  
  137. {$ENDC} {__FINDER__}
  138.  
  139. {$IFC NOT UsingIncludes}
  140.  END.
  141. {$ENDC}
  142.